package com.yunxi.model.sys;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import lombok.Data;

import java.util.Date;

@TableName(value = "sys_role")
@Data
public class Role {
    @TableId(type = IdType.UUID)
    private String roleId;

    private String roleCode;

    private String roleName;

    private String domainId;

    private Integer status;

    @JsonDeserialize(using=DateJsonDeserializer.class)
    @TableField(value="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "CREATE_BY", fill = FieldFill.INSERT)
    private String createBy;

    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(value = "UPDATE_BY", fill = FieldFill.UPDATE)
    private String updateBy;

    private Integer isAdd;
    private Integer isEdit;
    private Integer isDel;
    private Integer isCheck;
    private Integer isFind;
    private Integer isExp;
    private Integer isImp;

    @TableField("TENANT_ID")
    private String tenantId;
}